import axios from "axios";

export function request() {
  const axiosInstance = axios.create({
    baseURL: "",
    timeout: 5000
  });

  axiosInstance.interceptors.request.use((config) => {
    return config;
  });
  axiosInstance.interceptors.response.use((response) => {
    return response.data;
  });

  return axiosInstance;
}